package com.ning.ems.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Ning 242741154@qq.com
 * @date 2020/4/7 11:52
 */
@Data
@ApiModel("DTO-User-SignUp")
public class UserSignUpDto implements Serializable {
    @ApiModelProperty("用户名")
    @NotNull(message = "用户名不能为空")
    private String name;

    @ApiModelProperty("密码")
    @NotNull(message = "密码不能为空")
    private String password;

    @ApiModelProperty("确认密码")
    @NotNull(message = "确认密码不能为空")
    private String checkPass;

    @ApiModelProperty("手机号码")
    @NotNull(message = "手机号码不能为空")
    private String mobileNumber;
}
